<form method="post" action="__URL__/savePermission" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone)">
	<div class="pageFormContent" layoutH="98">
		
		<volist id="v" name="menu">			
			<div class="unit">{$v.title}</div>
			<notempty name="v.sub">
			<volist id="z" name="v.sub">
			<label><input type="checkbox" name="permission[]" <php>if(in_array($z['id'],$permission)) echo 'checked="checked"';</php> value="{$z.id}" />{$z.title}</label>
			</volist>
			</notempty>
			<div class="divider"></div>
		</volist>
		<input type="hidden" name="id" value="{$Think.get.id}" />
		
	</div>
	<div class="formBar">
		<label style="float:left"><input type="checkbox" class="checkboxCtrl" group="permission[]" />全选</label>
		<ul>
			<li><div class="button"><div class="buttonContent"><button type="button" class="checkboxCtrl" group="permission[]" selectType="invert">反选</button></div></div></li>
			<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保 存</button></div></div></li>
		</ul>
	</div>
</form>

